<extend name="Home@Base/common" xmlns="http://www.w3.org/1999/html"/>
<block name="body">
    <div class="span9 page_message">
        <section id="contents"> <include file="Home@Addons/_nav" />
            <div class="tab-content">
                <div>
                    <a class="btn" href="{:U('add',array('type'=>3,'subtype'=>0))}">新建差旅报销</a>
                    <a class="btn" href="{:U('add',array('type'=>3,'subtype'=>1))}">新建会议报销</a>
                    <a class="btn" href="{:U('add',array('type'=>3,'subtype'=>2))}">新建其他报销</a>
                </div>
                <div style="height:20px;"></div>

                <table>
                    <thead><tr>
                        <th>审批单号</th>
                        <th>申请人部门</th>
                        <th>申请人</th>
                        <th>报销类型</th>
                        <th>总金额</th>
                        <th>创建时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr></thead>
                    <volist name="applies" id="vo">
                        <tr>
                            <td>{$vo['apply_no']}</td>
                            <td>{$vo['dept_name']}</td>
                            <td>{$vo['emp_name']}</td>
                            <td>{$vo['type_name']}</td>
                            <td>{$vo['total_money']}</td>
                            <td>{$vo['submit_date']}</td>
                            <td><font color={$vo['show_state_color']}>{$vo['show_state']}</font></td>
                            <td> <a href="{$vo['redirect_url']}">查看详情</a></td>
                        </tr>
                    </volist>
                </table>
                <div class="page"> {$_page|default=''} </div>
            </div>
        </section>
    </div>
</block>

<block name="style">
    <style type="text/css">
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 0 auto;
            text-align: center;
        }
        table td, table th {
            border: 0px solid #cad9ea;
            color: #666;
            height: 30px;
            text-align: center;
        }
        table thead th {
            background-color: #CCE8EB;
            width: 100px;
        }
        table tr:nth-child(odd) {
            background: #fff;
        }
        table tr:nth-child(even) {
            background: #F5FAFA;
        }
    </style>
</block>